import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './style/base.scss'
import './style/ui.scss'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { toLine } from './utils/index'
import mUI from "./components"
// import chooseIcon from './components/chooseIcon'
// import chooseArea from './components/chooseArea'
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    // console.log(toLine(key))
    app.component(`el-icon-${toLine(key)}`, component)
}


app.use(router).use(ElementPlus).use(mUI)
app.mount('#app')